package com.atdfrz.secondshop.mapper;

import com.atdfrz.secondshop.dto.OrderDto;
import com.atdfrz.secondshop.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.atdfrz.secondshop.pojo.Order
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {
        OrderDto findOrderDtobyOrderId(Long orderId);

        /**
         * 根据订单的id查找到订单下面的所有订单项详情
         * @param orderId
         * @return
         */
        Order findOrderAndItembyOrderId(Long orderId);
        List<Order> findOrderAndItembysOrderId(Long orderId);
}




